const mongoose = require("mongoose");
var Admin = require("../models/admin.modle");
//增加
exports.create = function(req, res, next) {
    const admin = new Admin(req.body);
    admin.save().then((data) => res.json(data));
}
exports.find = function(req, res, next) {
    Admin.find(req.body).then((data) => res.json(data));
}